package hello;

import java.sql.Connection;
import java.sql.DriverManager;




public class ConnectionProvider {
 public static Connection getConect()
    {
        Connection cn = null;
        try {
            Class.forName("com.mysql.jdbc.Driver");
            String url = "jdbc:mysql://localhost:3306/testdb";
            cn= DriverManager.getConnection(url,"root","");

        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return cn;
    }
}



